package com.xxxy.jsq.model;

import com.alibaba.fastjson2.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class Type implements Serializable {
    private Long typeId;
    private String typeName;
    private Integer typeCount;
    private String typeFlag;
    private String typeYears;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date typeStmp;

    public Type() {
    }

    public Type(Long typeId, String typeName, Integer typeCount, String typeFlag, String typeYears, Date typeStmp) {
        this.typeId = typeId;
        this.typeName = typeName;
        this.typeCount = typeCount;
        this.typeFlag = typeFlag;
        this.typeYears = typeYears;
        this.typeStmp = typeStmp;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getTypeCount() {
        return typeCount;
    }

    public void setTypeCount(Integer typeCount) {
        this.typeCount = typeCount;
    }

    public String getTypeFlag() {
        return typeFlag;
    }

    public void setTypeFlag(String typeFlag) {
        this.typeFlag = typeFlag;
    }

    public String getTypeYears() {
        return typeYears;
    }

    public void setTypeYears(String typeYears) {
        this.typeYears = typeYears;
    }
//
    public Date getTypeStmp() {
        return typeStmp;
    }

    public void setTypeStmp(Date typeStmp) {
        this.typeStmp = typeStmp;
    }

    @Override
    public String toString() {
        return "Type{" +
                "typeId='" + typeId + '\'' +
                ", typeName='" + typeName + '\'' +
                ", typeCount=" + typeCount +
                ", typeFlag='" + typeFlag + '\'' +
                ", typeYears='" + typeYears + '\'' +
                ", typeStmp=" + typeStmp +
                '}';
    }
}